﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace DTOs.Utilities
{
    class CustomExtensions
    {
    }

    public class EmailAttribute : RegularExpressionAttribute
    {
        public EmailAttribute() : base("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$;") { }
    }
}
